# 选择排序

class SelectSort(object):

    def select_sort(self,args):
        for i in range(len(args)):
            min_index = i
            for j in range(i+1,len(args)):
                if args[min_index]>args[j]:
                    min_index = j
            args[i],args[min_index] = args[min_index],args[i]
        return args

obj = SelectSort()
print(obj.select_sort([1,4,2,5,3,6,7,9,10]))